﻿@{
    ViewData["Title"] = Model + " - Awesome CMS Core";
}
@model int
@{
    var statusCode = Model;
    var statusmessage = "";
    switch (statusCode)
    {
        case 400:
            statusmessage = "Bad request: The request cannot be fulfilled due to bad syntax";
            break;
        case 403:
            statusmessage = "Forbidden: You are not authorize to use system. Please contact admin for detail";
            break;
        case 404:
            statusmessage = "Page not found";
            break;
        case 408:
            statusmessage = "The server timed out waiting for the request";
            break;
        case 500:
            statusmessage = "Internal Server Error";
            break;
        default:
            statusmessage = "That’s odd... Something we didn't expect happened";
            break;
    }
}

<div class="error-page-wrapper row2">
    <div id="error-container" class="clear">
        <div id="error-page" class="clear">
            <div class="hgroup">
                <h1>@statusmessage</h1>
                <h2>@Model Error</h2>
            </div>
            <p>Go <a href="javascript:history.go(-1)">Back</a> or <a href="/">Home</a></p>
        </div>
    </div>
</div>